﻿@model MegaBitProject.ViewModels.HighScore

<div class="game">
    <div class="score">
        <h3>Top Players:</h3>
        <table>
            <tbody>
                <tr>
                    <th>Nr.</th>
                    <th>Name</th>
                    <th>Score</th>
                </tr>
            @for(int i = 0; i < ((Model.name).Count < 10 ? (Model.name).Count : 10); i++)
            {
                <tr>
                    <td>@(i+1)</td>
                    <td>@Html.ActionLink(Model.name[i], "UserProfile/" + Model.name[i], "Account")</td>
                    <td>@Model.score[i]</td>
                </tr>
            }
            </tbody>
        </table>
    </div>
</div>
